package com.betterwood.dragon.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户
 * </p>
 */
@Data
@Document("changes")
public class Change implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Id
    @JsonProperty("id")
    private String id;

    /**
     * 网站名称
     */
    private String siteName;

    /**
     * 网站Id
     */
    private String siteId;

    /**
     * 网站NO
     * 
     */
    private String siteNo;

    /**
     * 关键字名称
     */
    private String keywordStr;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * skuId
     */
    private String skuId;

    /**
     * 
     */
    private String priceBefore;

    /**
    * 
    */
    private String priceAfter;

    /**
    * 
    */
    private String recordIdAfter;

    /**
     * 关键字Id
     */
    private String keywordId;

    /**
     * 关键字Id
     */
    private String productId;

    /**
     * 关键字Id
     */
    private String productName;

    /**
     * 价格增减状态, 1为增加, 0为减少
     */
    private Integer status = 0;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
